<div class="formbody">
    <div class="formtitle">
        <span class="on">基本信息</span>
    </div>
    <form  method="post" accept-charset="utf-8">
        <ul class="forminfo">
            <li>
                <label>设备名</label>
                <label><?php echo $dev['name']; ?></label>
            </li>  
            <li>
                <label>设备ID</label>
                <label><?php echo $dev['id']; ?></label>
            </li> 
            <li>
                <label>设备MAC</label>
                <label><?php echo $dev['mac']; ?></label>
            </li>  
            <li>
                <label>设备类型</label>
                <select name="type" class="select">
                    <?php foreach ($devTypes as $val=>$name): ?>
                        <option value="<?php echo $val; ?>" <?php echo $val==$dev['type'] ? 'selected' : ''; ?>><?php echo $name; ?></option>}
                    <?php endforeach; ?>
                </select>
            </li> 
            <li>
                <label>学校</label>
                <select name="schoolID" class="select">
                    <?php foreach ($schoolList as $id=>$school): ?>
                        <option value="<?php echo $id; ?>" <?php echo $id==$dev['schoolID'] ? 'selected' : ''; ?>><?php echo $school['name']; ?></option>}
                    <?php endforeach; ?>
                </select>
            </li>  
            <li>
                <label>添加时间</label>
                <i><?php echo date('Y-m-d H:i:s',$dev['createTime']); ?></i>
            </li> 
            <li>
                <label>&nbsp;</label>
                <input name="did" type="hidden" value="<?php echo $dev['id']; ?>"/>
                <input name="submit" type="submit" class="btn" name="submit" value="修改"/>
            </li>
        </ul>
    </form>
</div>


